﻿/******************************************************************
** 文 件 名: Sys_Notepad_View.aspx.cs
** Copyright (c) 2010-2012 Honestysoft (GuangZhou) Co.,LTD
** 创 建 人: 蔡少鹏
** 创建日期: 2012-6-14 16:10:34
** 描    述: 记事本查看页面
** 版    本: 2.0.0.0
** 修改描述:
** 修 改 人:
** 修改日期:
******************************************************************/
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Honestysoft.BaseObject;
using Honestysoft.Baseframework.WebUI;
using Honestysoft.Financing.Model;


namespace Honestysoft.Financing.WebUI.Module.OtherBu
{
	public partial class Sys_Notepad_View : BasePage
	{	
		protected override void Page_Load(object sender, EventArgs e)
        {
			base.Page_Load(sender, e);
            if (!IsPostBack)
            {
                Bind();
            }
        }		
		/// <summary>
        /// 绑定页面
        /// </summary>
        private void Bind()
        {
           	Sys_Notepad obj = new BaseBusinessLogic<Sys_Notepad>().GetEntity(Request.QueryString["ID"]);
			if(obj == null){ return; }
			_ID = obj.ID;
			_IsPrivate = ScriptHelper.Image.GetBooleanImage(obj.IsPrivate);
			
            //_NoteType = Honestysoft.EnumHelper.EnumInstance.GetEnumDataText(obj.NoteType);
			_CreateTime = obj.CreateTime.ToString("yyyy-MM-dd");
			_Creator = obj.Creator;
			_CreatorName = obj.CreatorName;
			_NoteDate = obj.NoteDate.ToString("yyyy-MM-dd");
			_Description = obj.Description.Replace("\n","<br/>");
        }
		
		/// <summary>
        /// 标识
        /// </summary>
		protected string _ID = "";
		/// <summary>
        /// 是否私有
        /// </summary>
		protected string _IsPrivate = "";
		/// <summary>
        /// 事项类型
        /// </summary>
		protected string _NoteType = "";
		/// <summary>
        /// 创建日期
        /// </summary>
		protected string _CreateTime = "";
		/// <summary>
        /// 创建人
        /// </summary>
		protected string _Creator = "";
		/// <summary>
        /// 登记人
        /// </summary>
		protected string _CreatorName = "";
		/// <summary>
        /// 日期
        /// </summary>
		protected string _NoteDate = "";
		/// <summary>
        /// 事项说明
        /// </summary>
		protected string _Description = "";
	}
}